package com.pptv.mtbu.ottflow.service;

import java.util.List;

import com.pptv.mtbu.ottflow.domain.*;
import com.pptv.mtbu.ottflow.exception.OttflowException;
import com.pptv.mtbu.ottflow.vo.PageBean;



public interface AdminManager
{
	
	void addUsr(User user) throws OttflowException;
	
	int USER_SUPERADMIN = 0;
	int USER_CP = 1;
	int USER_SP = 2;
	int USER_ORM = 3;
	int USER_ADMIN = 4;
	
	int validLogin(User user);
	
	@Deprecated
	List<User> findUsrByPage(PageBean pageBean);
	
	@Deprecated
	int findUsrNum();
	@Deprecated
	int findUsrNum(String hsl);
	
	int findUsrNum(String hsl,Object[] objs);
	
	User findUsrById(int id);

    List<Role> findAllRoles();

    @Deprecated
	List<User> findUsrByRoleIdByPage(String roleId, PageBean pageBean);
    @Deprecated
	List<User> findUsrByRoleByPage(Role role, PageBean pageBean);

    List<User> find(String hsl, Object[] objs, PageBean pageBean);


}